import { ref } from 'vue';

// 模拟模态框状态
const isModalOpen = ref(false);

// 显示模态框
const openModal = () => {
    isModalOpen.value = true;
};

// 关闭模态框
const closeModal = () => {
    isModalOpen.value = false;
};

// 导出组合式函数
const useModalService = () => {
    return {
        isModalOpen,
        openModal,
        closeModal
    };
};

export default useModalService;    